package com.xtinno.service;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Headers;
import com.dtflys.forest.annotation.Post;
import com.xtinno.pojo.ModelRequest;
import com.xtinno.pojo.llm.VLLMResponseDTO;
import org.springframework.stereotype.Service;

/**
 * 大模型请求
 *
 * @author GuanLei
 * @time 2025/5/21 19:01
 */
@BaseRequest(baseURL = "#{model.url}")
@Service
public interface CopyModelService {

	@Post(url = "/v1/chat/completions")
	@Headers({"Content-Type: application/json"})
	VLLMResponseDTO requestModel(@Body ModelRequest modelRequest);
}
